﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using StyleMVVM.DependencyInjection;

namespace StyleMVVM.DotNet.Aspects.UnitTests.Classes
{
	public class LocatedAspect : IAspect, IAspectShouldBeLocated
	{
		private ITestService testService;

		public static string TestString;

		public LocatedAspect(ITestService testService)
		{
			this.testService = testService;
		}

		public void Invoke(IAspectInvokeContext context)
		{
			TestString = testService.TestProp;

			context.Proceed();
		}
	}
}
